{extends file="./main.tpl"}
{block name=head}
<link href="css/user.css" rel="stylesheet" type="text/css" />
<script>
function myFunction()
{
	if(confirm("Are You Sure To Delete")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>
{/block}
{block name="body"}
<form action="" class="register1"> 
<table align="center" border=1>
<h2 align="center">Invoice Detail</h2>
  <tr>
  	<th class="text-field">&nbsp;</th>
  	<th class="text-field">Invoice No</th>
  	<th class="text-field">Quntity</th>
  	<th class="text-field">Price</th>
  	<th class="text-field">Value</th>
  	<th class="text-field">Date Of Loading</th>
  	<th class="text-field">Vessel</th>
  	<th class="text-field">Etd Date</th>
  </tr>
  {section name="sec" loop=$invoiceArray}
  <tr>
  	<td class="table2" align="center"><a href="invoiceDelete.php?invoiceId={$invoiceArray[sec].invoiceId}&contractId={$invoiceArray[sec].contractId}" onclick="return myFunction();" style="font-size:15px; color:#5BA7E9; text-decoration: none;" class="link"><b>Delete</b></a></td>
    <td align="center" class="text-field">{$invoiceArray[sec].invoiceNo}</td>
    <td align="center" class="text-field">{$invoiceArray[sec].qty}</td>
    <td align="center" class="text-field">{$invoiceArray[sec].price}</td>
    <td align="center" class="text-field">{$invoiceArray[sec].value}</td>
    <td align="center" class="text-field">{$invoiceArray[sec].dateOfLoading}</td>
    <td align="center" class="text-field">{$invoiceArray[sec].vessel}</td>
    <td align="center" class="text-field" >{$invoiceArray[sec].etdDate}</td>
  </tr>
  {/section}
</table>
{/block}